package com.kayo.specimen.dao;

import com.kayo.specimen.model.Role;
import com.kayo.specimen.model.UserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserRoleMapper {
    public List<UserRole> select(@Param("id") String id,@Param("userId") String userId, @Param("roleId") String roleId);

    public int insert(UserRole... userRoles);

    public int update(UserRole... userRoles);

    public int delete(String... id);

    public int deleteByUserAndRole(@Param("userId") String userId,@Param("roleId") String roleId);

    public List<Role> getRoles(@Param("userId") String userId);

}
